package cn.edu.ujn.laxlab2.dao;

import java.util.List;
import java.util.Map;

import cn.edu.ujn.laxlab2.dao.Orders;

public interface OrdersMapper {
    int deleteByPrimaryKey(Integer user_id);
    int deleteByOrderId(int order_id);

    int insert(Orders record);

    int insertSelective(Orders record);

    List<Orders> selectByPrimaryKey(Integer user_id);
    //通过product_id查product
    List<Orders> findProductByOrderId(Integer id);

    int updateByPrimaryKeySelective(Orders record);

    int updateByPrimaryKey(Orders record);
    
    int addOrdersItem(Map orderItem);
    //通过user_id查order
    List<Orders> findOrdersWithUser(int user_id);
}